<?php

if(!$l->IsLoggedIn()) {
    $_SESSION['mission'] = 'profile';
    $l->main();
    return;
}

$db = new PGSQLConnector('u_superuser');

$template = newPage('profile');
$template->title = 'My profile - IAESTE Application System';
$template->l = $l;

try {
    echo $template->execute();
} catch (Exception $e) {
    echo $e;
}
?>
